Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove direct GitHub API calls from frontend #40

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

neubig
Copy link
Contributor

@neubig neubig commented Dec 10, 2024

Fixes #39

The frontend was making direct calls to the GitHub API to check PR status, which was causing 403 errors. This change removes those direct API calls since the PR status is already included in the cached data that is built by the backend.

Changes:

  • Removed checkPRStatus function from frontend service
  • Removed PR status fetching from fetchBotActivities since it is already included in the cached data

This should resolve the 403 errors since the frontend will no longer make any direct calls to the GitHub API.

The frontend was making direct calls to the GitHub API to check PR status,
which was causing 403 errors. This change removes those direct API calls
since the PR status is already included in the cached data that's built
by the backend.
Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openhands-agent-monitor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 11:35pm

The tests were expecting the frontend to fetch PR status directly from
GitHub API, but now that we've moved that logic to the backend, we need
to update the tests to use the PR status from the cache instead.
@neubig neubig merged commit 3eeaecb into main Dec 10, 2024
6 checks passed
@neubig neubig deleted the fix-github-api-403 branch December 10, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: 403 errors on github api
2 participants